/**
 * Created with JetBrains WebStorm.
 * User: smd
 * Date: 2/10/14
 * Time: 2:02 PM
 * To change this template use File | Settings | File Templates.
 */
function AppVO() {

    //tihs.server = DEFAULT_SERVER; //'http://khesab.aramco.com.sa:1080'
    var applicationPath = APPLICATION_PATH; // '/sap/bc/bsp/sap/zfi_fion_db'
    this.METHOD = METHOD;

    this.BSP_QUERY_VARS_LIST_URL =  QUERY_VARS_LIST_URL;
    this.BSP_QUERY_EXECUTE_URL =  QUERY_EXECUTE_URL;

    this.BSP_ORG_TREE_URL = ORG_TREE_URL;
    this.BSP_GET_F4_URL = F4_HELPER_URL;
    this.EXCEL_EXPORT = EXCEL_EXPORT;
    this.COMPONENTS_LIST_URL = COMPONENTS_LIST_URL;


    if(window.location.hostname == "localhost" || window.location.hostname == "127.0.0.1")
    {
        this.BSP_QUERY_VARS_LIST_URL = "mock" + this.BSP_QUERY_VARS_LIST_URL;
        this.BSP_QUERY_EXECUTE_URL = "mock" + this.BSP_QUERY_EXECUTE_URL;
        this.BSP_ORG_TREE_URL = "mock" + this.BSP_ORG_TREE_URL;
        this.BSP_GET_F4_URL = "mock" + this.BSP_GET_F4_URL;
        this.EXCEL_EXPORT = "mock" + this.EXCEL_EXPORT;
        this.COMPONENTS_LIST_URL = "mock" + this.COMPONENTS_LIST_URL;
    }

    else
    {
        this.BSP_QUERY_VARS_LIST_URL = applicationPath + this.BSP_QUERY_VARS_LIST_URL;
        this.BSP_QUERY_EXECUTE_URL = applicationPath + this.BSP_QUERY_EXECUTE_URL;
        this.BSP_ORG_TREE_URL = applicationPath + this.BSP_ORG_TREE_URL;
        this.BSP_GET_F4_URL = applicationPath + this.BSP_GET_F4_URL;
        this.EXCEL_EXPORT = applicationPath + this.EXCEL_EXPORT;
        this.COMPONENTS_LIST_URL = applicationPath + this.COMPONENTS_LIST_URL;
    }

}